package com.ly.annotation;

import org.springframework.stereotype.Component;
//将目标类交由spring容器管理
@Component
public class Target {
//    public void selectAll(){
//        System.out.println("selectAll tun ...");
//    }
//    public void selectById(int id){
//        System.out.println("selectById tun ...");
//    }

    public void selectAll() {
        System.out.println("Select All");
    }

    public void selectById(int id) {
        System.out.println("Select by ID: " + id);
    }
    public int selectAdd(int a,int b){
        System.out.println("selectAdd tun ...");
        return a+b;
    }
}

